$color: red;
$color2: green #555;

$headings: (h1: 2em red, h2: 1.5em green, h3: 1.2em blue);
@each $header, $size in $headings {
  #{$header} {
    font-size: nth($size,1);
    background:  nth($size,2);
  }
}



.d1{
	width: 100px;
	height: 100px;
	background-color: $color;

	&:hover{
		background-color: nth($color2,2);
	}

	h1{
		background-color: #072EB7;
	}
}